//
//  SNHBaseCenterActionSheet.h
//  SNHActionSheetKit
//
//  Created by 陈建蕾 on 2018/6/1.
//

#import <UIKit/UIKit.h>

/**
 * 中心弹出视图
 */
@interface SNHBaseCenterActionSheet : UIView

/** values */
@property (nonatomic, copy) NSArray <NSValue *> *values;
/** 动画时间，约小越快 */
@property (nonatomic, assign) CGFloat duration;
/** 动画持续时间内的每一帧的时间 !后面的值必须大于前面的值 */
@property (nonatomic, copy) NSArray <NSNumber *> *keyTimes;
/** 运行的节奏 */
@property (nonatomic, copy) NSArray <CAMediaTimingFunction *> *timingFunctions;
/** 动画属性 默认为 transform */
@property (nonatomic, copy) NSString *keyPath;

#pragma mark - Base
/** 默认加载的superview，新增控件可以加载在此控件上 */
@property (nonatomic, strong) UIView *actionSheetView;
/** 点击非展示区域是否消失, 默认为YES */
@property (nonatomic, assign) BOOL isTapMiss;

+ (instancetype)actionSheetWithSize:(CGSize)size;
- (void)viewDidLoad;
- (void)showInWindow;
- (void)showInSuperView:(UIView *)superView;
- (void)miss;

- (instancetype)new NS_UNAVAILABLE;
- (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE;
@end
